/**
 * FileName: test
 * Author:   powersi
 * Date:     2021/1/11 17:15
 * Description: 1
 */
package com.zm.demo.tsf;

import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;

/**
 * Description: 1
 * Author:      powersi
 * Date:        2021/1/11 17:15
 */
public class test {


    public static void main(String[] args) {

        List<Integer> list = Arrays.asList(1,5,6,2,4);
        System.out.println(list.stream().max((i1, i2) -> i1 > i2 ? 1 : -1).get());

    }
}
